import request from '@/utils/request'

// 查询基金分类列表
export function listInvesttype(query) {
  return request({
    url: '/business/investtype/list',
    method: 'get',
    params: query
  })
}

// 查询基金分类详细
export function getInvesttype(id) {
  return request({
    url: '/business/investtype/' + id,
    method: 'get'
  })
}

// 新增基金分类
export function addInvesttype(data) {
  return request({
    url: '/business/investtype',
    method: 'post',
    data: data
  })
}

// 修改基金分类
export function updateInvesttype(data) {
  return request({
    url: '/business/investtype',
    method: 'put',
    data: data
  })
}

// 删除基金分类
export function delInvesttype(id) {
  return request({
    url: '/business/investtype/' + id,
    method: 'delete'
  })
}
